if (too_big) return max;
if (too_small) return min;
return just_right;